<template>
	<view class="totip">
			{{content}}
	</view>
</template>

<script>
	import * as Api from '@/api/recovery'
	const App = getApp()
	export default{
		data(){
			return{
				g_list:[],
				content:''
			}
		},
		onLoad(options) {
			console.log(options)
			this.t_id=options.t_id
			this.getTip()
		},
		methods:{
			getTip(callback) {
			   const app = this
			   // const pageId = app.options.pageId || 0
			   Api.help()
			     .then(result => {
						  console.log(result)
						  app.g_list=result.data.list.data
						  app.g_list.forEach(item=>{
							  console.log(item)
							  if(item.help_id==app.t_id){
								  app.content=item.content
							  }
						  })
			     })
			     .finally(() => callback && callback())
			 },
		}
	}
</script>

<style>
	
	.totip{
		padding: 30rpx;
	}
</style>